{extend name="base/index"/}
{block name="page_location"}
<div class="page-title-right">
    <ol class="breadcrumb m-0">
        <li class="breadcrumb-item">管理中心</li>
        <li class="breadcrumb-item active"><i class="iconfont icon-angle-right"></i> 首页</a></li>
    </ol>
</div>
<h4 class="page-title">{$page_title}</h4>
{/block}
<!-- END HEAD -->
<!-- BEGIN BODY -->
{block name="body"}
<!-- BEGIN PAGE CONTAINER-->
<div class="card">
    <div class="card-header">常用操作<a href="{:url('nav/index')}" class="badge badge-primary"
            style="float:right;">设置常用操作</a></div>
    <div class="card-body">
        <div class="card widget-inline">
            <div class="card-body p-0">
                <div class="row no-gutters">
                    {volist name="nav_list" id="navl"}
                    {volist name="navl" id="nav"}
                    <div class="col-sm-6 col-xl-3">
                        <a href="{:url($nav.linkurl)}" target="{$nav.openmode}">
                            <div class="card shadow-none m-0">
                                <div class="card-body text-center">
                                    <i class="iconfont {$nav.icon_class} text-muted" style="font-size: 24px;"></i>
                                    <h3><span>{$nav.navname}</span></h3>
                                    <p class="text-muted font-15 mb-0">快速进入</p>
                                </div>
                            </div>
                        </a>
                    </div>
                    {/volist}
                    {/volist}
                </div> <!-- end row -->
            </div>
        </div> <!-- end card-box-->
    </div> <!-- end card-body-->
</div>

<div class="row">
    <div class="col-lg-6">
        <div class="card" style="height: 600px;">
            <div class="card-body">
                <h4 class="header-title mb-3">系统日志</h4>
                <ul class="nav nav-tabs nav-justified nav-bordered mb-3"">
                        <li class=" nav-item">
                    <a href="#log_tab1" data-toggle="tab" aria-expanded="false" class="nav-link active">
                        <i class="mdi mdi-home-variant d-lg-none d-block mr-1"></i>
                        <span class="d-none d-lg-block">系统</span>
                    </a>
                    </li>
                    <li class="nav-item">
                        <a href="#log_tab2" data-toggle="tab" aria-expanded="true" class="nav-link">
                            <i class="mdi mdi-account-circle d-lg-none d-block mr-1"></i>
                            <span class="d-none d-lg-block">会员</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="#log_tab3" data-toggle="tab" aria-expanded="false" class="nav-link">
                            <i class="mdi mdi-settings-outline d-lg-none d-block mr-1"></i>
                            <span class="d-none d-lg-block">订单</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="#log_tab4" data-toggle="tab" aria-expanded="false" class="nav-link">
                            <i class="mdi mdi-settings-outline d-lg-none d-block mr-1"></i>
                            <span class="d-none d-lg-block">支付</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="#log_tab5" data-toggle="tab" aria-expanded="false" class="nav-link">
                            <i class="mdi mdi-settings-outline d-lg-none d-block mr-1"></i>
                            <span class="d-none d-lg-block">短信</span>
                        </a>
                    </li>
                </ul>

                <div class="tab-content">
                    <div class="tab-pane active" id="log_tab1">
                        <div class="inbox-widget">
                            {volist name="log_lists.syslog" id="data"}
                            <div class="inbox-item">
                                <p class="inbox-item-author">【{$data.uname}】 {$data.msg} </p>
                                <p class="inbox-item-text">IP:{$data.ip}</p>
                                <p class="inbox-item-date">
                                    <a href="javascript:;" class="btn btn-sm btn-link text-info font-13"> {$data.time|date="m-d
                                        H:i:s",###} </a>
                                </p>
                            </div>
                            {/volist}
                        </div>
                    </div>
                    <div class="tab-pane" id="log_tab2">
                        <div class="inbox-widget">
                            {volist name="log_lists.memlog" id="data"}
                            <div class="inbox-item">
                                <p class="inbox-item-author">【{$data.uname}】 {$data.msg} </p>
                                <p class="inbox-item-text">IP:{$data.ip}</p>
                                <p class="inbox-item-date">
                                    <a href="javascript:;" class="btn btn-sm btn-link text-info font-13"> {$data.time|date="m-d
                                        H:i:s",###} </a>
                                </p>
                            </div>
                            {/volist}
                        </div>
                    </div>
                    <div class="tab-pane" id="log_tab3">
                        <div class="inbox-widget">
                            {volist name="log_lists.ordlog" id="data"}
                            <div class="inbox-item">
                                <p class="inbox-item-author">【{$data.uname}】 {$data.msg} </p>
                                <p class="inbox-item-text">IP:{$data.ip}</p>
                                <p class="inbox-item-date">
                                    <a href="javascript:;" class="btn btn-sm btn-link text-info font-13"> {$data.time|date="m-d
                                        H:i:s",###} </a>
                                </p>
                            </div>
                            {/volist}
                        </div>
                    </div>
                    <div class="tab-pane" id="log_tab4">
                        <div class="inbox-widget">
                            {volist name="log_lists.smslog" id="data"}
                            <div class="inbox-item">
                                <p class="inbox-item-author">【{$data.uname}】 {$data.msg} </p>
                                <p class="inbox-item-text">IP:{$data.ip}</p>
                                <p class="inbox-item-date">
                                    <a href="javascript:;" class="btn btn-sm btn-link text-info font-13"> {$data.time|date="m-d
                                        H:i:s",###} </a>
                                </p>
                            </div>
                            {/volist}
                        </div>
                    </div>
                    <div class="tab-pane" id="log_tab5">

                    </div>
                </div>

            </div> <!-- end card-body-->
        </div> <!-- end card-->
    </div> <!-- end col -->

    <div class="col-lg-6">
        <div class="card" style="height: 600px;">
            <div class="card-body">
                <h4 class="header-title mb-3">系统基本信息</h4>
                <ul class="nav nav-tabs nav-justified nav-bordered mb-3">
                    <li class="nav-item">
                        <a href="#home_b1" data-toggle="tab" aria-expanded="false" class="nav-link active">
                            <i class="mdi mdi-home-variant d-lg-none d-block mr-1"></i>
                            <span class="d-none d-lg-block">服务器信息</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="#home_b2" data-toggle="tab" aria-expanded="true" class="nav-link">
                            <i class="mdi mdi-account-circle d-lg-none d-block mr-1"></i>
                            <span class="d-none d-lg-block">PHP支持</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="#home_b3" data-toggle="tab" aria-expanded="false" class="nav-link">
                            <i class="mdi mdi-settings-outline d-lg-none d-block mr-1"></i>
                            <span class="d-none d-lg-block">PHP扩展</span>
                        </a>
                    </li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="home_b1">
                        <table class="table table-centered mb-0">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>项目名称</th>
                                    <th>项目值</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="server_info" id="d" key="k"}
                                <tr>
                                    <td>{$k}</td>
                                    <td>{$d.title}【{$d.name}】</td>
                                    <td>{$d.value}</td>
                                </tr>
                                {/volist}
                            </tbody>
                        </table>
                    </div>
                    <div class="tab-pane show" id="home_b2">
                        <table class="table table-centered mb-0">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>项目名称</th>
                                    <th>项目值</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="php_info" id="d" key="k"}
                                <tr>
                                    <td>{$k}</td>
                                    <td>{$d.title}【{$d.name}】</td>
                                    <td>{$d.value}</td>
                                </tr>
                                {/volist}
                            </tbody>
                        </table>
                    </div>
                    <div class="tab-pane" id="home_b3">
                        <table class="table table-centered mb-0">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>项目名称</th>
                                    <th>项目值</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="phpext_list" id="d" key="k"}
                                <tr>
                                    <td>{$k}</td>
                                    <td>{$d.title}【{$d.name}】</td>
                                    <td>{$d.value}</td>
                                </tr>
                                {/volist}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div> <!-- end card-body-->
        </div> <!-- end card-->
    </div> <!-- end col -->
</div>
{/block}